package org.example;

/**
 * @program: exper_code
 * @description:
 * @author: wjd
 * @create: 2025-11-10 17:36
 **/
public class Product {
    private String title;
    private Double weight;
    private String description;

    private Double singlePrice;  // 商品单价

    public Double getWeight() {
        return weight;
    }

    public Double getPriceForQuantity(Double quantity){
        return singlePrice * quantity;
    }
}
